package com.water.bs.service;

import com.water.bs.mapper.UserDonationMapper;
import com.water.bs.pojo.DonationHistory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class UserDonationService {
@Autowired
private UserDonationMapper userDonationMapper;

//   public int donation(Map<String,Object> map){return userDonationMapper.donation(map);}

   public List<Map<String,Object>> qryMyDonation(String userid){return userDonationMapper.qryMyDonation(userid);}

   public List<Map<String,Object>> qryMyDonationDetail(String doid){return userDonationMapper.qryMyDonationDetail(doid);}

   public int cancelDo(String doid){return userDonationMapper.cancelDo(doid);}

   public int saveDohistory (Map<String,Object> map){return userDonationMapper.saveDohistory(map);}

   public int saveDohistoryDetail (Map<String,Object> map){return userDonationMapper.saveDohistoryDetail(map);}

   public  int saveDoTransform (Map<String,Object> map){return userDonationMapper.saveDoTransform(map);}

   public int editDo(Map<String,Object> map){return userDonationMapper.editDo(map);}
   public int editDo2(Map<String,Object> map){return userDonationMapper.editDo2(map);}
   public int editDo3(Map<String,Object> map){return userDonationMapper.editDo3(map);}

}


